package com.urguxxi.springdemo.service;

import com.urguxxi.springdemo.dto.ResultDTO;
import com.urguxxi.springdemo.entity.Admin;

import javax.servlet.http.HttpSession;

/**
 * 登录服务的接口
 * 写接口的目的是方便扩展、复用
 */
public interface LoginService {
    /**
     * 用户登录
     * @param admin
     * @return
     */
    ResultDTO login(Admin admin, HttpSession session);

}
